{% extends "search_template.html" %}

{% load static %}

{% block title %}
    搜猫-搜视频
{% endblock %}

{% block form %}
    <h1>搜猫-搜视频</h1><br>
    {% include "form.html" with action="/retrieval/" %}
{% endblock %}

{% block result %}
    {% for res in result %}
        <div class=videoborder>
            <div class=videotext>
                <a href="https://www.bilibili.com/video/{{ res.bv }}">
                    {% if res.pic == 404 %}
                        <img src="/static/image/404.jpg" style=" width:168px; height:100px" alt="视频找不到了">
                    {% else %}
                        <img src="{{ res.pic }}" style=" width:168px; height:100px" alt="{{ res.title }}">
                    {% endif %}
                    <div class=text>{{ res.title }}</div>
                </a>
            </div>
        </div>
    {% endfor %}
{% endblock %}
